#include <iostream>
#include <vector>

using namespace std;
using std::vector;

int main() {
  int arr1[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  int arr2[10];
  for (int i = 0; i != 10; ++i) {
    arr2[i] = arr1[i];
  }
  for (int i = 0; i != 10; ++i) {
    cout << arr2[i] << " ";
  }
  cout << endl;

  vector<int> v1{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  vector<int> v2(v1);
  for (auto num : v2) {
    cout << num << " ";
  }
  cout << endl;

  return 0;
}